import Vue from 'vue'
import Router from 'vue-router'
import Home from './home'
import Login from './login'
import Other from './other'

Vue.use(Router)

var routers = [Login, Home, Other]

var routerArr = []
for (var i = 0; i < routers.length; i++) {
  routerArr = routerArr.concat(routers[i])
}

export default new Router({
  //mode: 'history', //放出来影响打包后，页面显示空白
  linkActiveClass: 'is-active',
  routes: routerArr
})
